
package com.probiz.estore.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.probiz.estore.core.event.MenuRoleDataCacheClearEvent;
import com.probiz.estore.core.event.EventUtil;
/**
 *	权限菜单数据缓存刷新拦截器 
 *
 */
public class MenuRoleDataCacheRefreshInterceptor implements MethodInterceptor {
	protected final transient Log	logger	= LogFactory.getLog(getClass());
	

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
	 */
	public Object invoke(MethodInvocation methodInvocation) throws Throwable {
		Object returnObj = methodInvocation.proceed();
		EventUtil.getInstance().fire(new MenuRoleDataCacheClearEvent(this));
		return returnObj;
	}
	
	
}
